import { createWebHistory, createRouter } from "vue-router";
import WelcomePage from "../page/WelcomePage.vue";
import PaipanPage from "../page/PaipanPage.vue";
import SettingsPage from "../page/SettingsPage.vue";
import GroupManage from "../page/GroupManage.vue";
import BookRead from "../page/BookRead.vue";
import BookSearch from "../page/BookSearch.vue";
import QQ from "../components/fuzhu/QQ.vue";
import { path } from "@tauri-apps/api";
import WeiXin from "../components/fuzhu/WeiXin.vue";
import RiLi from "../page/RiLi.vue";
import BookTanChuang from "../page/BookTanChuang.vue";
// import cc from "../vue/inndex.vue"
const routes = [
  {
    path: "/",
    name: "welcomePage",
    component: WelcomePage,
    meta: {
      transition: "van-fade",
    },
  },
  {
    path: "/paipan",
    name: "paipan",
    component: PaipanPage,
    children: [
      {
        path: "qq",
        name: "qq",
        component: QQ,
      },
      {
        path: "weixin",
        name: "weixin",
        component: WeiXin,
      }
    ],
  },
  {
    path: "/settings",
    name: "settings",
    component: SettingsPage,
  },
  {
    path: "/group",
    name: "group",
    component: GroupManage,
    meta: {
      transition: "van-slide-right",
    },
  },
  {
    path: "/bookRead",
    name: "bookRead",
    component: BookRead,
  },
  {
    path: "/bookSearch",
    name: "bookSearch",
    component: BookSearch,
  },
  {
    path: "/rili",
    name: "rili",
    component: RiLi,
  },
];

const router = createRouter({
  history: createWebHistory("history"),
  routes,
});

export default router;
